package cc.lj.internal.coupons.infrastructure.po;

import cc.lj.internal.core.model.BaseModel;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.math.BigDecimal;

/**
 * 封顶额活动批次表PO
 * @author liangxifeng
 * @date 2021-12-11
 */
@Data
@NoArgsConstructor
@TableName("cap_batch")
@ToString(callSuper = true)
public class CapBatchPO extends BaseModel {
    /**
     * 主键
     */
    @TableId
    private Integer	id;

    /**
     * 关联券批次ticket_batch主键
     */
    private Integer	batchId;

    /**
     * 关联商户封顶额mart_cap表主键
     */
    private Integer	capId;

    /**
     * 占有卖场封顶额的比例，不可为空，默认0
     */
    private BigDecimal martCapRatio;

    /**
     * 商户新分摊比例
     */
    private BigDecimal	merchantShare;

    /**
     * 卖场新分摊比例
     */
    private BigDecimal	martShare;

    /**
     * 商户分摊金额
     */
    private BigDecimal	merchantPrice;

    /**
     * 卖场分摊金额
     */
    private BigDecimal	martPrice;

}
